package com.jiayi.weiphoto.page;

import android.graphics.Camera;
import android.graphics.Matrix;
import android.view.animation.Animation;
import android.view.animation.Transformation;

public class Rotate3dAnimation extends Animation
{
//  private Camera mCamera;
//  private final float mCenterX;
//  private final float mCenterY;
//  private final float mDepthZ;
//  private final float mFromDegrees;
//  private final boolean mIsRotateY;
//  private final boolean mReverse;
//  private final float mToDegrees;
//
//  public Rotate3dAnimation(float paramFloat1, float paramFloat2, float paramFloat3, float 
//
//paramFloat4, float paramFloat5, boolean paramBoolean1, boolean paramBoolean2)
//  {
//    this.mFromDegrees = paramFloat1;
//    this.mToDegrees = paramFloat2;
//    this.mCenterX = paramFloat3;
//    this.mCenterY = paramFloat4;
//    this.mDepthZ = paramFloat5;
//    this.mReverse = paramBoolean1;
//    this.mIsRotateY = paramBoolean2;
//  }
//
//  protected void applyTransformation(float paramFloat, Transformation paramTransformation)
//  {
//    float f1 = this.mFromDegrees;
//    float f2 = f1 + paramFloat * (this.mToDegrees - f1);
//    float f3 = this.mCenterX;
//    float f4 = this.mCenterY;
//    Camera localCamera = this.mCamera;
//    Matrix localMatrix = paramTransformation.getMatrix();
//    localCamera.save();
//    if (this.mReverse)
//    {
//      localCamera.translate(0.0F, 0.0F, paramFloat * this.mDepthZ);
//      if (!this.mIsRotateY)
////        break label133;
//      localCamera.rotateY(f2);
//    }
//    while (true)
//    {
//      localCamera.getMatrix(localMatrix);
//      localCamera.restore();
//      localMatrix.preTranslate(-f3, -f4);
//      localMatrix.postTranslate(f3, f4);
//      return;
////      localCamera.translate(0.0F, 0.0F, this.mDepthZ * (1.0F - paramFloat));
////      break;
////      label133: localCamera.rotateX(f2);
//    }
//  }
//
//  public void initialize(int paramInt1, int paramInt2, int paramInt3, int paramInt4)
//  {
//    super.initialize(paramInt1, paramInt2, paramInt3, paramInt4);
//    this.mCamera = new Camera();
//  }
}
